package de.moc.android;

import com.google.gson.Gson;

import de.moc.shared.Survey;




public class JSONParser {

	public String toJASON( Survey survey)
	{
		Gson gson = new Gson();
		
		return gson.toJson( survey);
	}
	public Object surveyfromJson(String string)
	{
		Gson gson = new Gson();
		
		return gson.fromJson(string, Survey.class);
		
	}
}
